package com.suray.basic.wcs.utils;

/**
 * 计算时间
 */
public class Time {
    public int day;
    public int hour;
    public int minute;
    public int seconds;

    /**
     *
     * @param time:ms
     */
    public Time(long time) {
        time = time / 1000;
        seconds = (int) (time % 60);
        minute = (int) ((time / 60) % 60);
        hour = (int) ((time / 3600) % 24);
        day = (int) (time / 3600 / 24);
    }
}
